/**
 * 
 */
package com.pcbly.web.business.chart;

import java.util.List;

import com.pcbly.web.bean.chart.ChartBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.persistence.chart.ChartDao;

/**
 * @author Administrator
 * @date 2009-7-13
 * @copyright lightsoft
 */
public class ChartServiceImp extends BaseServiceImp<ChartBean> implements
		ChartService {
	public ChartServiceImp() {

	}

	protected ChartDao chartDao;

	public void setChartDao(ChartDao chartDao) {
		this.chartDao = chartDao;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	@Override
	public int deleteChartBean(String id) throws Exception {
		// TODO Auto-generated method stub
		return chartDao.deleteChartBean(id);
	}

	@Override
	public int insertChartBean(ChartBean chartBean) throws Exception {
		// TODO Auto-generated method stub
		return chartDao.insertChartBean(chartBean);
	}

	@Override
	public ChartBean queryChartBeanById(String id) throws Exception {
		// TODO Auto-generated method stub
		return chartDao.queryChartBeanById(id);
	}

	@Override
	public ChartBean queryDetailChartBeanById(String id) throws Exception {
		// TODO Auto-generated method stub
		return chartDao.queryDetailChartBeanById(id);
	}

	@Override
	public List<ChartBean> queryList() throws Exception {
		// TODO Auto-generated method stub
		return chartDao.queryList();
	}

	@Override
	public int updateChartBean(ChartBean chartBean) throws Exception {
		// TODO Auto-generated method stub
		return chartDao.updateChartBean(chartBean);
	}

}
